package com.zhifa.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhifa.dao.StaffDao;
import com.zhifa.entity.Staff;

@Service("staffService")
public class StaffService {

	@Resource
	StaffDao staffDao;
	
	public int addStaff(Staff staff){
		return staffDao.addStaff(staff);
	}
	
	
	public long getCounts(Map<String, Object> map){
		return staffDao.getCounts(map);
	}
	
	public List<Staff> getListByMap(Map<String, Object> map){
		return staffDao.getListByMap(map);
	}
	
	public int updateStaff(Staff staff){
		return	staffDao.updateStaff(staff);
	}
	
	public int changeState(Staff staff){
		return staffDao.changeState(staff);
	}
	
	public List<Staff> findEntry(){
		return staffDao.findEntry();
	}
	
	public List<Staff> getStaffByInstitution(Staff staff){
		return staffDao.getStaffByInstitution(staff);
	}
}
